package com.xwdeshj.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * 用户组权限信息管理表
 */
@Entity(name = "xw_jurisdiction")
public class XwJurisdiction {
    /**
     * 权限id
     */
    @Column(name = "jur_id")
    private Integer jurId;

    /**
     * 权限加密id
     */
    @Column(name = "jur_encryptId")
    private String jurEncryptid;

    /**
     * 用户加密id
     */
    @Column(name = "user_encryptId")
    private String userEncryptid;

    /**
     * Url链接（有链接，则表示有权限）页面中每一个操作权限
     */
    private String url;

    /**
     * 描述
     */
    @Column(name = "jur_title")
    private String jurTitle;

    /**
     * 页面权限
     */
    private String interfacetitle;

    /**
     * 添加时间
     */
    @Column(name = "jur_createtime")
    private Date jurCreatetime;

    public XwJurisdiction(){

    }

    public XwJurisdiction(String jurEncryptid, String userEncryptid, String url, String jurTitle, String interfacetitle, Date jurCreatetime) {
        this.jurEncryptid = jurEncryptid;
        this.userEncryptid = userEncryptid;
        this.url = url;
        this.jurTitle = jurTitle;
        this.interfacetitle = interfacetitle;
        this.jurCreatetime = jurCreatetime;
    }

    /**
     * 获取权限id
     *
     * @return jur_id - 权限id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getJurId() {
        return jurId;
    }

    /**
     * 设置权限id
     *
     * @param jurId 权限id
     */
    public void setJurId(Integer jurId) {
        this.jurId = jurId;
    }

    /**
     * 获取权限加密id
     *
     * @return jur_encryptId - 权限加密id
     */
    public String getJurEncryptid() {
        return jurEncryptid;
    }

    /**
     * 设置权限加密id
     *
     * @param jurEncryptid 权限加密id
     */
    public void setJurEncryptid(String jurEncryptid) {
        this.jurEncryptid = jurEncryptid;
    }

    /**
     * 获取用户加密id
     *
     * @return user_encryptId - 用户加密id
     */
    public String getUserEncryptid() {
        return userEncryptid;
    }

    /**
     * 设置用户加密id
     *
     * @param userEncryptid 用户加密id
     */
    public void setUserEncryptid(String userEncryptid) {
        this.userEncryptid = userEncryptid;
    }

    /**
     * 获取Url链接（有链接，则表示有权限）页面中每一个操作权限
     *
     * @return url - Url链接（有链接，则表示有权限）页面中每一个操作权限
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置Url链接（有链接，则表示有权限）页面中每一个操作权限
     *
     * @param url Url链接（有链接，则表示有权限）页面中每一个操作权限
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 获取描述
     *
     * @return jur_title - 描述
     */
    public String getJurTitle() {
        return jurTitle;
    }

    /**
     * 设置描述
     *
     * @param jurTitle 描述
     */
    public void setJurTitle(String jurTitle) {
        this.jurTitle = jurTitle;
    }

    /**
     * 获取页面权限
     *
     * @return interfacetitle - 页面权限
     */
    public String getInterfacetitle() {
        return interfacetitle;
    }

    /**
     * 设置页面权限
     *
     * @param interfacetitle 页面权限
     */
    public void setInterfacetitle(String interfacetitle) {
        this.interfacetitle = interfacetitle;
    }

    /**
     * 获取添加时间
     *
     * @return jur_createtime - 添加时间
     */
    public Date getJurCreatetime() {
        return jurCreatetime;
    }

    /**
     * 设置添加时间
     *
     * @param jurCreatetime 添加时间
     */
    public void setJurCreatetime(Date jurCreatetime) {
        this.jurCreatetime = jurCreatetime;
    }

    @Override
    public String toString() {
        return "XwJurisdiction{" +
                "jurId=" + jurId +
                ", jurEncryptid='" + jurEncryptid + '\'' +
                ", userEncryptid='" + userEncryptid + '\'' +
                ", url='" + url + '\'' +
                ", jurTitle='" + jurTitle + '\'' +
                ", interfacetitle='" + interfacetitle + '\'' +
                ", jurCreatetime=" + jurCreatetime +
                '}';
    }
}